<?php

namespace App\Package\Finance\Contracts;

/**
 * 栈接口
 *
 * Interface StackContract
 * @package App\Package\Finance\Contracts
 * Date: 2018/6/6
 * @author George
 */
interface StackContract
{
	/**
	 * 入栈
	 *
	 * Date: 2018/6/6
	 * @author George
	 * @param ElementContract $element
	 * @return bool
	 */
	public function push(ElementContract $element): bool;

	/**
	 * 出栈
	 *
	 * Date: 2018/6/6
	 * @author George
	 * @return ElementContract
	 */
	public function pop(): ElementContract;
}
